﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Cursos.aspx.cs" Inherits="UI.Web.Cursos" %>
<asp:Content ID="Content1" ContentPlaceHolderID="bodyContentPlaceHolder" runat="server">
<link id="cssGrid" rel="stylesheet" type="text/css" href="css/gridCSS.css"/> 
<link id="Link1" rel="stylesheet" type="text/css" href="css/MainStyle.css"/>

    <asp:Panel ID="gridPanelCursos" runat="server">
        <asp:GridView ID="gvCursos" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="ID" onselectedindexchanged="gvCursos_SelectedIndexChanged1"
            CssClass="table" AllowPaging="True" 
            PageSize="12">
            
        <FooterStyle CssClass="FooterStyle" />  
        <PagerStyle CssClass="gridpager" />
        <RowStyle CssClass="RowStyle" /> 
        <HeaderStyle CssClass="HeaderStyle" /> 
        <AlternatingRowStyle CssClass="AlternateRowStyle" />
        
        <Columns>
        <asp:BoundField Headertext="Id" DataField="Id" />
        <asp:BoundField Headertext="Materia" DataField="Idmateria" />
        <asp:BoundField Headertext="Comision" DataField="Idcomision" />
        <asp:BoundField Headertext="Año Calendario" DataField="Aniocalendario" />
        <asp:BoundField Headertext="Cupo" DataField="Cupo"/>
        <asp:CommandField HeaderText="Seleccionar" ShowSelectButton="true" />

        </Columns>
        </asp:GridView>
    </asp:Panel>
    
    <asp:Panel ID="Panel1" runat="server" Visible="False">
                <br />
                <asp:Label ID="nombreLabel1" runat="server" Text="Id: "></asp:Label>
                <asp:TextBox ID="txtId" runat="server" Enabled="False"></asp:TextBox>
                <asp:Label ID="apellidoLabel1" runat="server" Text="Materia: "></asp:Label>
                <asp:TextBox ID="txtMateria" runat="server"></asp:TextBox>
                <asp:Label ID="Label1" runat="server" Text="Comision: "></asp:Label>
                <asp:TextBox ID="txtComision" runat="server"></asp:TextBox>
                <asp:Label ID="Label2" runat="server" Text="Año Calendario: "></asp:Label>
                <asp:TextBox ID="txtAño" runat="server"></asp:TextBox>
                <asp:Label ID="Label3" runat="server" Text="Cupo: "></asp:Label>
                <asp:TextBox ID="txtCupo" runat="server"></asp:TextBox>
                
                <asp:Panel ID="formActionsPanel" runat="server">
                <br />
                <asp:Button ID="btnAceptar" runat="server" CssClass="buttonAceptar" Text="Aceptar" 
                        onclick="btnAceptar_Click" />
                <asp:Button ID="btnCancelar" runat="server" CssClass="buttonEliminar" 
                        Text="Cancelar" onclick="btnCancelar_Click" />

                </asp:Panel>
        </asp:Panel>
                <br />
                <asp:Panel ID="gridActionsMaterias" runat="server">
                <asp:Button ID="btnNuevo" runat="server" CssClass="button" Text="Nuevo" 
                        onclick="btnNuevo_Click" />
                <asp:Button ID="btnEditar" runat="server" CssClass="button" Text="Editar" 
                        onclick="btnEditar_Click" />
                <asp:Button ID="btnEliminar" runat="server" CssClass="buttonEliminar" 
                        Text="Eliminar" onclick="btnEliminar_Click" />
        </asp:Panel>
        
</asp:Content>